<script setup>
import { ref } from 'vue'
import { onLaunch, onShow, onLoad } from '@dcloudio/uni-app'

//引入props
const props = defineProps({
  item: {
    type: Object,
    default: () => ({}),
  },
})
</script>

<template>
  <view class="item">
    <view><image :src="item.icon" style="width: 56rpx; height: 56rpx" /></view>
    <text>{{ item.name }}</text>
  </view>
</template>

<style lang="scss">
.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
</style>
